/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Poker;

import Slots.Console;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import javax.swing.JPanel;

/**
 *
 * @author moncef
 */
public class Flash extends JPanel {

    private Console console;
    private Slots.Animation.AnimationVictoire animVictoire = new Slots.Animation.AnimationVictoire();
    private Graphics2D g2d;
    private int height = 153;
    public int vitesse = 3;
    public int x = 85;
    public int i = 1;
    public int j = 1;
    public String message = "Congratulations! You win!";

    public Flash(Console console) {
        this.console = console;
        this.setOpaque(false);
    }

    public void start() {
        animVictoire.start();
    }

    public void stop() {
        animVictoire.interrupt();

    }

//    @Override
//    public void paintComponent(Graphics g) {
//
//        Color color = new Color(0, 0, 0);
//
//        g2d = (Graphics2D) g;
//        g2d.setColor(color);
//
//        g2d.fillOval();
//
//    }
}
